﻿using Architecture.Repository.Interface.Traceability;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Traceability.Domain.DeepProcessingDomain;
using Traceability.Domain.SupplierDomain;

namespace Architecture.Repository.Impl.Traceability
{
    /// <summary>
    /// 辅料仓储
    /// </summary>
    public class AuxiliaryMaterialsRepository : BaseRepository<AuxiliaryMaterials>, IAuxiliaryMaterialsRepository
    {
        public AuxiliaryMaterialsRepository(EFCoreContext context) : base(context)
        {

        }

        public async Task<int> AddAuxiliaryMaterials(AuxiliaryMaterials auxiliaryMaterials)
        {
            return await base.AddAsync(auxiliaryMaterials);
        }

        public async Task<List<AuxiliaryMaterials>> GetAuxiliaryMaterialsList()
        {
            return await base.GetAllAsync();
        }

        public async Task<int> UpdateAuxiliaryMaterialsg(AuxiliaryMaterials auxiliaryMaterials)
        {
            return await base.UpdateAsync(auxiliaryMaterials);
        }

        public async Task<AuxiliaryMaterials> BackInfoAuxiliaryMaterials(int auxiliaryMaterialsId)
        {
            return await base.GetModelAsync(auxiliaryMaterialsId);
        }

    }
}
